<template>
	<view class="image-view" :style="{backgroundImage:`url(${src})`}"></view>
</template>

<script>
    export default {
        name: "ImageView",
        props: {
            src: String
        }
    }
</script>
<style>
	.image-view{
		height: 100%;
		background-size: cover;
		background-position:center;
		background-repeat:no-repeat;
	}
</style>
